﻿using System;
using YinfangWeb.Common;

namespace YinfangWeb.Model
{
	/// <summary>
	/// ProductPromotion
	/// </summary>
    [Serializable]
	public class ProductPromotion
	{
		/// <summary>
		/// ProductPromotionID
        /// </summary>
        [FieldName("ProductPromotionID")]		
		public int ProductPromotionID
		{
			get;
			set;
		}
        
		/// <summary>
		/// PromotionState
        /// </summary>
        [FieldName("PromotionState")]		
		public int PromotionState
		{
			get;
			set;
		}
        
		/// <summary>
		/// PromotionName
        /// </summary>
        [FieldName("PromotionName")]		
		public int PromotionName
		{
			get;
			set;
		}
        
		/// <summary>
		/// ValidBegin
        /// </summary>
        [FieldName("ValidBegin")]		
		public DateTime ValidBegin
		{
			get;
			set;
		}
        
		/// <summary>
		/// ValidEnd
        /// </summary>
        [FieldName("ValidEnd")]		
		public DateTime ValidEnd
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegDateTime
        /// </summary>
        [FieldName("RegDateTime")]		
		public DateTime RegDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegUserID
        /// </summary>
        [FieldName("RegUserID")]		
		public int RegUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// RegFullName
        /// </summary>
        [FieldName("RegFullName")]		
		public string RegFullName
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditDateTime
        /// </summary>
        [FieldName("EditDateTime")]		
		public DateTime EditDateTime
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditUserID
        /// </summary>
        [FieldName("EditUserID")]		
		public int EditUserID
		{
			get;
			set;
		}
        
		/// <summary>
		/// EditFullName
        /// </summary>
        [FieldName("EditFullName")]		
		public string EditFullName
		{
			get;
			set;
		}
        
        public ProductPromotion Clone()
        {
            return (ProductPromotion)this.MemberwiseClone();
        }
        
        public ProductPromotion()
        {
            ValidBegin = ConvertHelper.DefaultDate;
            ValidEnd = ConvertHelper.DefaultDate;
            RegDateTime = ConvertHelper.DefaultDate;
            RegFullName = string.Empty;
            EditDateTime = ConvertHelper.DefaultDate;
            EditFullName = string.Empty;
        }
	}
}
